<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%> 
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>  
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery-3.3.1.min.js"></script>
<title>Insert title here</title>
<style type="text/css">
	#body{
		margin-left: 60px;
		margin-top: 30px;
	}
	td{
		height: 60px;
		width: 200px;
	}
</style>
</head>
<body>
<div id="body">
	<table>
		<tr>
			<th>商品名称</th>
			<th>商品类型</th>
			<th>商品价格</th>
			<th>商品产地</th>
			<th>商品状态</th>
			<th>操作</th>
		</tr>
		<c:forEach items="${Goods }" var="goods">
			<tr>
				<td align="center">${goods.goodsName }</td>
				<td align="center">${goods.goodsType }</td>
				<td align="center">${goods.goodsPrice }</td>
				<td align="center">${goods.goodsAddress }</td>
				<c:if test="${goods.goodsState == 1}"><td align="center">正常售卖</td></c:if>
				<c:if test="${goods.goodsState == 0}"><td align="center">已下架</td></c:if>
				<td align="center"><a href="${pageContext.request.contextPath}/ShowShopGoods?goodsId=${goods.goodsId }">修改</a></td>
			</tr>
		</c:forEach>
	</table>
</div>
</body>
</html>